CC=g++ 
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=main.cpp *.h
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=ta

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) main.cpp -o $@

.cpp.o: 
	$(CC) $(CFLAGS) main.cpp -o $@
